﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Logistics.Migrations
{
    public partial class scwer : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
          

         

        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Ownername",
                table: "Vehicle",
                newName: "Vinsurance");

            migrationBuilder.RenameColumn(
                name: "Fieldname",
                table: "Vehicle",
                newName: "Vcar");

            migrationBuilder.AlterColumn<decimal>(
                name: "Vwide",
                table: "Vehicle",
                type: "decimal(65,30)",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "float");

            migrationBuilder.AlterColumn<DateTime>(
                name: "Vmaintain",
                table: "Vehicle",
                type: "datetime(6)",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");

            migrationBuilder.AlterColumn<decimal>(
                name: "Vlong",
                table: "Vehicle",
                type: "decimal(65,30)",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "float");

            migrationBuilder.AlterColumn<decimal>(
                name: "Vhigh",
                table: "Vehicle",
                type: "decimal(65,30)",
                nullable: false,
                oldClrType: typeof(float),
                oldType: "float");

        
        }
    }
}
